#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef struct Student
{
    int IID;
    char NName[20];

    struct Student *pre;
    struct Student *pnext;
}STU,*pSTU;
//申请空间
STU *mkNewSpace()
{
    STU* stu=(STU*)malloc(sizeof(STU));
    if(NULL == stu)
    {
        exit(EXIT_FAILURE);
    }
    else
    {
        memset(stu,0,sizeof(stu));
    }
    
}
void TopInsert(STU *head,STU *node)
{
    if(NULL==head||NULL==node)
    {
        return;
    }
    else
    {
        if(NULL ==head->pnext)
        {
            head->pnext=node;
            node->pre=head;
        }
        else
        {
            node->pnext=head->pnext;
            head->pnext->pre=node;
            head->pnext=node;
            node->pre=head;
        }
        
    } 
}
int main(void)
{
    return 0;
}